home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / usr / include / sys / major.h.z / major.h
C/C++ Source or Header  |  1992-04-03  |  6KB  |  155 lines

  1. /**************************************************************************
  2.  *                                      *
  3.  *          Copyright (C) 1989, Silicon Graphics, Inc.          *
  4.  *                                      *
  5.  *  These coded instructions, statements, and computer programs  contain  *
  6.  *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
  7.  *  are protected by Federal copyright law.  They  may  not be disclosed  *
  8.  *  to  third  parties  or copied or duplicated in any form, in whole or  *
  9.  *  in part, without the prior written consent of Silicon Graphics, Inc.  *
  10.  *                                      *
  11.  **************************************************************************/
  12.  
  13. #ident    "$Revision: 1.34 $"
  14.  
  15. /* Definitions for external major numbers. */
  16.  
  17. #define    DU_MAJOR    0
  18. #define    MM_MAJOR    1    /* /dev/mem & /dev/kmem */
  19. #define    SY_MAJOR    2
  20. #define    RD_MAJOR    3
  21. #define    DKIP_MAJOR    4    /* Interphase disk controllers. */
  22. #define    TS_MAJOR    5    /* QIC tape */
  23. #define    XYL_MAJOR    6    /* Xylogics disk controllers. */
  24. #define    PRF_MAJOR    7    /* Kernel profiler */
  25. #define    CDSIO_MAJOR    8    /* serial I/O board */
  26. #define    QUEUE_MAJOR    9
  27. #define    CLN_MAJOR    10    /* streams clone device */
  28. #define    HL_MAJOR    11    /* hardware spinlock implementation */
  29. #define    GRO_MAJOR    12
  30. #define    GRI_MAJOR    13
  31. #define    PTC_MAJOR    14    /* PTY controller--see also PTC*_MAJOR */
  32. #define    PTS_MAJOR    15
  33. #define    IKC_MAJOR    16    /* Ikon color printer driver */
  34. #define    XM_MAJOR    17    /* Xylogics 1/2" tape. */
  35.  
  36. #define    NFS_MAJOR    18
  37. #define    NFS1_MAJOR    19
  38. #define    NF2S_MAJOR    20
  39. #define    NFS3_MAJOR    21
  40.  
  41. #define    DKSC_MAJOR    22    /* SCSI hard disks on SCSI ctlr 0 */
  42. #define    TPSC_MAJOR    23    /* SCSI tape. on SCSI ctlr 0 */
  43. #define    GM_MAJOR    24
  44. #define    DN_LL_MAJOR    25    /* 4DDN logical link driver */
  45. #define    DN_NETMAN_MAJOR 26    /* 4DDN network management */
  46. #define    DKSC1_MAJOR    27    /* SCSI hard disks on SCSI ctlr 1 */
  47. #define    TPSC1_MAJOR    28    /* SCSI tape. on SCSI ctlr 1 */
  48. #define    SMFD1_MAJOR    29    /* SCSI floppy driver (Scientific Microsystems 
  49.                  * 5 1/4, Konica ST-510 10.7Mb, and NCR 5 1/4" 
  50.                  * and 3 1/2" drives on SCSI ctlr 1 */
  51.  
  52. #define    LV_MAJOR    30    /* logical volume disk driver. */
  53.  
  54. #define    HY_MAJOR    31    /* Hyperchannel */
  55. #define    GPIB_MAJOR    32
  56.  
  57. #define    T3270_MAJOR    34    /* IBM 3270 interface */
  58. #define    GSE_MAJOR    35    /* Spectragraphics coax driver */
  59. #define    SI_MAJOR    36    /* IBM SNA SDLC controller */
  60.  
  61. #define    ZERO_MAJOR    37    /* /dev/zero - mapped shared mem driver */
  62. #define    MCIOPLP_MAJOR    38    /* PI printer */
  63. #define    MCIOAUD_MAJOR    39    /* PI sound */
  64. #define    SMFD_MAJOR    40    /* SCSI floppy driver (Scientific Microsystems 
  65.                  * 5 1/4, Konica ST-510 10.7Mb, and NCR 5 1/4" 
  66.                  * and 3 1/2" drives on SCSI ctlr 0 */
  67. #define    KLOG_MAJOR    41    /* Kernel error logging driver */
  68. #define    IMON_MAJOR    42    /* inode monitor driver */
  69. #define    DSCSI_MAJOR    43    /* devscsi: generic scsi interface */
  70. #define    XYLSIO_MAJOR    44    /* Xylogics 16 port serial I/O board */
  71. #define    FSCTL_MAJOR    45    /* EFS pseudo-device */
  72. #define TPORT_MAJOR    46    /* Textport Emulation on graphics */
  73. #define USEMA_MAJOR    47    /* pollable semaphore device */
  74.  
  75. #define IPI_MAJOR    48    /* Xylogics IPI disk controllers. */
  76. #define IPI1_MAJOR    49    /* Xylogics IPI disk controllers. */
  77. #define IPI2_MAJOR    50    /* Xylogics IPI disk controllers. */
  78. #define IPI3_MAJOR    51    /* Xylogics IPI disk controllers. */
  79. #define    CFEI_MAJOR    52    /* Cray FEI-3 low speed channel parallel intf */
  80. #define    HDSP_MAJOR    53    /* PI H. DSP */
  81. #define SHMIQ_MAJOR    54    /* Shared mem input queue (for window system) */
  82. #define QCNTL_MAJOR    55    /* Shared mem input queue (character device) */
  83. #define GFXS_MAJOR    56    /* graphics driver streams interface */
  84. #define GFX_MAJOR    57    /* graphics driver */
  85. #define CONSOLE_MAJOR    58    /* console driver */
  86. #define IPFILT_MAJOR    59    /* IP packet filtering */
  87.  
  88.  
  89. /*        60-79    Are reserved for Customer Use   */
  90.  
  91. #define CLN2_MAJOR    80    /* char special clone device */
  92. #define    DKSC2_MAJOR    81    /* SCSI hard disks on SCSI ctlr 2 */
  93. #define    DKSC3_MAJOR    82    /* SCSI hard disks on SCSI ctlr 3 */
  94. #define    TPSC2_MAJOR    83    /* SCSI tape. on SCSI ctlr 2 */
  95. #define    TPSC3_MAJOR    84    /* SCSI tape. on SCSI ctlr 3 */
  96. #define    SMFD2_MAJOR    85    
  97. #define    SMFD3_MAJOR    86    /* SCSI floppy driver (Scientific Microsystems 
  98.                  * 5 1/4, Konica ST-510 10.7Mb, and NCR 5 1/4" 
  99.                  * and 3 1/2" drives on SCSI ctlr 2,3 */
  100.  
  101. #define RTE_MAJOR    87
  102.  
  103. #define JAG0_MAJOR    88    /* SCSI VME disk controller 0 */
  104. #define JAG1_MAJOR    89    /* SCSI VME disk controller 1 */
  105. #define JAG2_MAJOR    90    /* SCSI VME disk controller 2 */
  106. #define JAG3_MAJOR    91    /* SCSI VME disk controller 3 */
  107. #define JAG4_MAJOR    92    /* SCSI VME disk controller 4 */
  108. #define JAG5_MAJOR    93    /* SCSI VME disk controller 5 */
  109. #define JAG6_MAJOR    94    /* SCSI VME disk controller 6 */
  110. #define JAG7_MAJOR    95    /* SCSI VME disk controller 7 */
  111.  
  112. #define JAGTAPE0_MAJOR    96    /* SCSI VME tape controller 0 */
  113. #define JAGTAPE1_MAJOR    97    /* SCSI VME tape controller 1 */
  114. #define JAGTAPE2_MAJOR    98    /* SCSI VME tape controller 2 */
  115. #define JAGTAPE3_MAJOR    99    /* SCSI VME tape controller 3 */
  116. #define JAGTAPE4_MAJOR    100    /* SCSI VME tape controller 4 */
  117. #define JAGTAPE5_MAJOR    101    /* SCSI VME tape controller 5 */
  118. #define JAGTAPE6_MAJOR    102    /* SCSI VME tape controller 6 */
  119. #define JAGTAPE7_MAJOR    103    /* SCSI VME tape controller 7 */
  120.  
  121. #define PTC1_MAJOR    104    /* additional PTYs */
  122. #define PTS1_MAJOR    105
  123. #define PTC2_MAJOR    106
  124. #define PTS2_MAJOR    107
  125. #define PTC3_MAJOR    108
  126. #define PTS3_MAJOR    109
  127. #define PTC4_MAJOR    110
  128. #define PTS4_MAJOR    111
  129.  
  130. #define MFS_MAJOR    112
  131. #define MFS1_MAJOR    113
  132. #define MFS2_MAJOR    114
  133. #define MFS3_MAJOR    115
  134.  
  135. #define SNATR_MAJOR    116    /* IBM SNA Token Ring stream pseudo-driver */
  136.  
  137. #define    SNIF_MAJOR    117    /* SNIF Streams Network Interface */
  138.  
  139. /* These macros are shared by tpsc.c, dksc.c smfd.c */
  140. /* SCSI minor # breakdown.
  141.  *      7     6    5          4              3     2     1     0
  142.  *    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  143.  *    +               +                                          +
  144.  *    +  Target  ID   +     driver's dependent           + 
  145.  *    +               +                                          +
  146.  *    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  147.  */
  148. #ifdef    STANDALONE
  149. extern int scsimajor[];
  150. #else
  151. extern char scsimajor[];
  152. #endif
  153. #define scsi_ctlr(dev)        scsimajor[((dev >> 8) & 0x7f)]
  154. #define scsi_unit(dev)        ((dev >> 5) & 0x7)
  155.